package com.nanyang.tms.api.dto.request.bill;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nanyang.common.core.domain.ApiRequest;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
public class BillRecordUpdateRequest extends ApiRequest {

    @JsonIgnore
    private String pin;

    @NotEmpty(message = "账单编码不能为空")
    @Length(max = 32, message = "billCode长度需小于32个字符")
    private String billCode;

    @Override
    public void requestCheck() {

    }
}
